home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / lpDaemon SRC / README < prev    next >
Text File  |  1993-03-30  |  4KB  |  93 lines

  1. lpDaemon and LPR
  2. ----------------
  3.  
  4. lpDaemon is a utility that implements the Berkeley Line Printer Protocols on
  5. the Macintosh. It normally spools postscript files sent from a unix host and
  6. sends them to a LaserWriter on the Mac network.  It may be used to print any
  7. files to an AppleTalk printer or a Serial printer.
  8.  
  9. LPR is an lpDaemon client that submits jobs to a printer queue.  Typically a
  10. text file is to a unix print queue.  If the file is of type TEXT the end of
  11. lines are converted to unix style end of lines before sending,  otherwise files
  12. are sent as is and marked with the 'literal' flag.
  13.  
  14. lpDaemon and LPR run under system 7 and require MacTCP.
  15.  
  16. What's new in this release
  17. --------------------------
  18.  
  19.     0) Several bug fixes.
  20.  
  21.     1) lpDaemon no longer looks for a file called "LaserWriter" in folder called
  22.        "Extensions".  The name of the LaserWriter driver is specified in the
  23.        config file, and must be located in the extensions folder (whatever it is called)
  24.  
  25.     2) Added a NOACTION flag to the config for debugging. This allows files to be spooled
  26.        but not printed or deleted.
  27.  
  28.     3) Added a NOMAIL flag to the config to disable the mailing of errors and log files.
  29.  
  30.     4) Added a NOACNT flag to the config to disable the accounting on postscript printers.
  31.  
  32.     5) Allows defining the prefix string for control files (normally cfA)
  33.  
  34.     6) Now does not put up status dialogs when running in the background.
  35.  
  36.     7) Added a status dialog to display what is happening when reading the config file.
  37.  
  38.     8) Improved backgrounding when resolving network names.
  39.  
  40.  
  41. Setting Up lpDaemon
  42. -------------------
  43. lpDaemon looks for a folder called "Spool Folder" in your system folder and
  44. a text file call LPD.config in the "Spool Folder" folder.  A sample LPD.config
  45. file is included in this package.  The sample contains information about setting
  46. up for your installation.
  47.  
  48.  
  49. What to do on the Unix Box
  50. --------------------------
  51. The unix machine needs to be told about the printer. This is done by adding an
  52. entry to the printcap file.  The following shows such an entry :
  53.  
  54. pslaser|PostScript LaserWriter:\
  55.       :rp=pslaser:lp=:\
  56.       :rm=server-mac:sd=/usr/spool/maclpd:\
  57.       :lf=/usr/adm/lpd-errs:
  58.  
  59. to print to this printer you use the command :
  60.  
  61.       lpr -Ppslaser <filename>
  62.  
  63. The rm entry tells lpd which machine the printer is conected to, in our case
  64. where lpDaemon is running.  The rp entry tells lpd which of the printers
  65. connected to this rp to print on.  This name will be passed on to lpDaemon which
  66. will map the name to a printer as specified in the config file.
  67.  
  68. If your LPD.config file on the macintosh has an entry :
  69.  
  70. PRINTER        pslaser            PAP        ""    POSTSCRIPT            # default
  71.  
  72. the print command above would print to your default printer.
  73.  
  74. What's in the LogFile
  75. ---------------------
  76. The log file keeps a record of everything printed through the spooler as well
  77. as all errors.  This file can be cleared by using the "Clear Log File" entry
  78. under the "File" menu.
  79.  
  80. If you are experiencing problems you may want to turn debugging on by adding
  81. a DEBUG command to the config file.  This causes extra debugging information
  82. to be sent to the log file.
  83.  
  84. The log file may be cleared using the "Clear Log File" entry in the file menu.
  85. When this is done the contents are first mailed to the ADMIN specified in the
  86. config file.
  87.  
  88. What if I Send a non-PostScript file to a PostScript printer
  89. ------------------------------------------------------------
  90. lpDaemon checks the first 2 characters in the file looking for %! which it would
  91. assume to be in all postscript file.  If these two characters are not there
  92. lpDaemon will reject the file and mail the owner.
  93.